module.exports = {
  presets: [
    '@vue/cli-plugin-babel/preset'
  ],
  plugins: [
    '@babel/plugin-syntax-dynamic-import',
    [
      'component',
      {
        libraryName: 'element-ui',
        styleLibraryName: 'theme-chalk'
      }
    ]
  ],

  /* 添加路由懒加载*/
  // '@babel/plugin-syntax-dynamic-import'
  // JSON
  // module.exports = {
  //   presets: ['@vue/app'],
  //   plugins: ['@babel/plugin-syntax-dynamic-import']
  // }
}

